package cl.regalloc.parse;

import java.util.LinkedList;

public class Routine {
	private LinkedList<BasicBlock> program = new LinkedList<BasicBlock>();
	private String name;

	public Routine(String name, LinkedList<BasicBlock>program) {
		this.name = name;
		this.program = program;
	}

	public void addBasicBlock(BasicBlock newBlock) {
		program.add(newBlock);
	}

	public LinkedList<BasicBlock> getRoutine() {
		return program;
	}

	public String getRoutineName() {
		return name;
	}
}
